<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>TrabalhodeSistemasOperacionais: Referência da Classe ThreadCaixa</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Gerado por Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">TrabalhodeSistemasOperacionais&#160;<span id="projectnumber">1.0</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Página&#160;Principal</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Arquivos</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Lista&#160;de&#160;Componentes</span></a></li>
      <li><a href="classes.html"><span>Índice&#160;dos&#160;Componentes</span></a></li>
      <li><a href="functions.html"><span>Componentes&#160;Membros</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Métodos Públicos</a> &#124;
<a href="#pub-attribs">Atributos Públicos</a>  </div>
  <div class="headertitle">
<h1>Referência da Classe ThreadCaixa</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="ThreadCaixa" -->
<p><code>#include &lt;<a class="el" href="threadcaixa_8h_source.html">threadcaixa.h</a>&gt;</code></p>

<p><a href="classThreadCaixa-members.html">Lista de todos os Membros.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Métodos Públicos</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classThreadCaixa.html#a22a1217fef61a24a5a2dcde15e58e17f">ThreadCaixa</a> (QObject *parent=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classThreadCaixa.html#a6e3273c5404c6fa0ce614099f10872f7">ThreadCaixa</a> (<a class="el" href="classControladorDeRecursos.html">ControladorDeRecursos</a> *<a class="el" href="classThreadCaixa.html#ac6ff4bcec4523e5c1dc1e5a0c54ae065">controladorDeRecursos</a>, QQueue&lt; <a class="el" href="classTransacao.html">Transacao</a> &gt; *<a class="el" href="classThreadCaixa.html#a6dac141a7664d46b1a3a228e97b0c006">fila</a>, QQueue&lt; <a class="el" href="classTransacao.html">Transacao</a> &gt; *<a class="el" href="classThreadCaixa.html#adb80c8b80212fe4c705f71d05c465e9e">filaPrioritaria</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classThreadCaixa.html#a7b57b3072c25e549b8133b0b9b53b33a">comunicaAgenciaX</a> (int x, QString mensagem)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classThreadCaixa.html#ac99196d6d9fe87ba14209ebaa002ef11">run</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classThreadCaixa.html#ac6e495c257026a58fd60d9d422914f7e">realizarTransacao</a> (<a class="el" href="classTransacao.html">Transacao</a> *)</td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Atributos Públicos</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QQueue&lt; <a class="el" href="classTransacao.html">Transacao</a> &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classThreadCaixa.html#a6dac141a7664d46b1a3a228e97b0c006">fila</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QQueue&lt; <a class="el" href="classTransacao.html">Transacao</a> &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classThreadCaixa.html#adb80c8b80212fe4c705f71d05c465e9e">filaPrioritaria</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classThreadCaixa.html#a5de1e3c2eea04745e3ad864b26d5d9e2">agenciaAlfa</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classThreadCaixa.html#a16f370d44a609f09d38f2dcee51438c8">agenciaBeta</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classThreadCaixa.html#ae785b4730d985ca7b162af87656e721e">chequeEspecial</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classControladorDeRecursos.html">ControladorDeRecursos</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classThreadCaixa.html#ac6ff4bcec4523e5c1dc1e5a0c54ae065">controladorDeRecursos</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Descrição Detalhada</h2>
<div class="textblock"><p>thread que representa um caixa da agencia </p>
</div><hr/><h2>Construtores &amp; Destrutores</h2>
<a class="anchor" id="a22a1217fef61a24a5a2dcde15e58e17f"></a><!-- doxytag: member="ThreadCaixa::ThreadCaixa" ref="a22a1217fef61a24a5a2dcde15e58e17f" args="(QObject *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ThreadCaixa::ThreadCaixa </td>
          <td>(</td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code></td><td>)</td>
          <td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6e3273c5404c6fa0ce614099f10872f7"></a><!-- doxytag: member="ThreadCaixa::ThreadCaixa" ref="a6e3273c5404c6fa0ce614099f10872f7" args="(ControladorDeRecursos *controladorDeRecursos, QQueue&lt; Transacao &gt; *fila, QQueue&lt; Transacao &gt; *filaPrioritaria)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ThreadCaixa::ThreadCaixa </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classControladorDeRecursos.html">ControladorDeRecursos</a> *&#160;</td>
          <td class="paramname"><em>controladorDeRecursos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QQueue&lt; <a class="el" href="classTransacao.html">Transacao</a> &gt; *&#160;</td>
          <td class="paramname"><em>fila</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QQueue&lt; <a class="el" href="classTransacao.html">Transacao</a> &gt; *&#160;</td>
          <td class="paramname"><em>filaPrioritaria</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>um construtor que passa referencias para a thread </p>

</div>
</div>
<hr/><h2>Métodos</h2>
<a class="anchor" id="a7b57b3072c25e549b8133b0b9b53b33a"></a><!-- doxytag: member="ThreadCaixa::comunicaAgenciaX" ref="a7b57b3072c25e549b8133b0b9b53b33a" args="(int x, QString mensagem)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString ThreadCaixa::comunicaAgenciaX </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>mensagem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>envia uma mensagem para a agencia x , e retorna a resposta </p>

</div>
</div>
<a class="anchor" id="ac6e495c257026a58fd60d9d422914f7e"></a><!-- doxytag: member="ThreadCaixa::realizarTransacao" ref="ac6e495c257026a58fd60d9d422914f7e" args="(Transacao *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ThreadCaixa::realizarTransacao </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classTransacao.html">Transacao</a> *&#160;</td>
          <td class="paramname"><em>transacao</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>faz todos os procedimentos para realizar uma transacao </p>

</div>
</div>
<a class="anchor" id="ac99196d6d9fe87ba14209ebaa002ef11"></a><!-- doxytag: member="ThreadCaixa::run" ref="ac99196d6d9fe87ba14209ebaa002ef11" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ThreadCaixa::run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Metodo principal que dispara a thread </p>

</div>
</div>
<hr/><h2>Atributos</h2>
<a class="anchor" id="a5de1e3c2eea04745e3ad864b26d5d9e2"></a><!-- doxytag: member="ThreadCaixa::agenciaAlfa" ref="a5de1e3c2eea04745e3ad864b26d5d9e2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classThreadCaixa.html#a5de1e3c2eea04745e3ad864b26d5d9e2">ThreadCaixa::agenciaAlfa</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Agencias que serão utilizadas pela <a class="el" href="classThreadCaixa.html">ThreadCaixa</a> </p>

</div>
</div>
<a class="anchor" id="a16f370d44a609f09d38f2dcee51438c8"></a><!-- doxytag: member="ThreadCaixa::agenciaBeta" ref="a16f370d44a609f09d38f2dcee51438c8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classThreadCaixa.html#a16f370d44a609f09d38f2dcee51438c8">ThreadCaixa::agenciaBeta</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ae785b4730d985ca7b162af87656e721e"></a><!-- doxytag: member="ThreadCaixa::chequeEspecial" ref="ae785b4730d985ca7b162af87656e721e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classThreadCaixa.html#ae785b4730d985ca7b162af87656e721e">ThreadCaixa::chequeEspecial</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>contém o valor que será dado aos cliente como chegque especial </p>

</div>
</div>
<a class="anchor" id="ac6ff4bcec4523e5c1dc1e5a0c54ae065"></a><!-- doxytag: member="ThreadCaixa::controladorDeRecursos" ref="ac6ff4bcec4523e5c1dc1e5a0c54ae065" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classControladorDeRecursos.html">ControladorDeRecursos</a>* <a class="el" href="classThreadCaixa.html#ac6ff4bcec4523e5c1dc1e5a0c54ae065">ThreadCaixa::controladorDeRecursos</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Ponteiro para um controlador de recursos. </p>

</div>
</div>
<a class="anchor" id="a6dac141a7664d46b1a3a228e97b0c006"></a><!-- doxytag: member="ThreadCaixa::fila" ref="a6dac141a7664d46b1a3a228e97b0c006" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QQueue&lt;<a class="el" href="classTransacao.html">Transacao</a>&gt;* <a class="el" href="classThreadCaixa.html#a6dac141a7664d46b1a3a228e97b0c006">ThreadCaixa::fila</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="adb80c8b80212fe4c705f71d05c465e9e"></a><!-- doxytag: member="ThreadCaixa::filaPrioritaria" ref="adb80c8b80212fe4c705f71d05c465e9e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QQueue&lt;<a class="el" href="classTransacao.html">Transacao</a>&gt;* <a class="el" href="classThreadCaixa.html#adb80c8b80212fe4c705f71d05c465e9e">ThreadCaixa::filaPrioritaria</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>A documentação para esta classe foi gerada a partir dos seguintes arquivos:<ul>
<li><a class="el" href="threadcaixa_8h_source.html">threadcaixa.h</a></li>
<li><a class="el" href="threadcaixa_8cpp.html">threadcaixa.cpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Gerado em Terça, 6 de Dezembro de 2011 01:44:55 para TrabalhodeSistemasOperacionais por&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>
